package com.zhm.demo.duckdb.mapper;


import com.zhm.demo.duckdb.entity.CsvEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface CsvMapper {

    @Select("SELECT * from '/WebstormProjects/ISO-3166-Countries-with-Regional-Codes/all/all.csv'")
    List<Map<String,String>> selectAll();

    List<CsvEntity> selectAllByXml();

    int insert(CsvEntity entity);

    int update(CsvEntity entity);
}
